package psd.model;

import psd.views.BugPrinter;
import psd.views.MarkerPrinter;

public class Bug {
	
	private String _ruleId;
	private String _ruleName;
	private String _message;
	private String _description;
	private String _example;
	private int _lineNumber;
	private String _path;
	private int _priority;
	
	
	public String get_ruleid() {
		return _ruleId;
	}
	public void set_ruleid(String ruleId) {
		_ruleId = ruleId;
	}
	
	public String get_ruleName() {
		return _ruleName;
	}
	public void set_ruleName(String ruleName) {
		_ruleName = ruleName;
	}

	public int get_lineNumber() {
		return _lineNumber;
	}

	public void set_lineNumber(int lineNumber) {
		_lineNumber = lineNumber;
	}

	public String get_path() {
		return _path;
	}

	public void set_path(String path) {
		_path = path;
	}

	public String get_message() {
		return _message;
	}

	public void set_message(String message) {
		_message = message;
	}

	public String get_description() {
		return _description;
	}

	public void set_description(String description) {
		_description = description;
	}

	public String get_example() {
		return _example;
	}

	public void set_example(String example) {
		_example = example;
	}
	
	public int get_priority() {
		return _priority;
	}

	public void set_priority(int priority) {
		_priority = priority;
	}

	public void Print() {
		BugPrinter printer = new MarkerPrinter();
		printer.Print(this);
	}
	
	public void StoreStadistic(){
		StadisticManager.getInstance().writeStadistic(this);
	}
	
}
